<?php

class validates {

    public function validatesPhoto($type) {
        

        $_UP['extensoes'] = array('jpg', 'png', 'gif');
        $extensao = strtolower(end(explode('.', $type)));

        if (array_search($extensao, $_UP['extensoes']) === false) {
            return false;
        }
        else
            return true;
    }

}

?>
